from django.urls import path, include
from rest_framework import routers

from connection.controllers.connection import ConnectionViewSet
from connection.controllers.certificate_template import CertificateTemplateViewSet
from connection.controllers.partner import PartnerViewSet

router = routers.DefaultRouter(trailing_slash=False)
router.register(r'partners', PartnerViewSet)
router.register(r'connections', ConnectionViewSet)
router.register(r'certificate_templates', CertificateTemplateViewSet)

urlpatterns = [
    path(r'', include(router.urls)),
]
